package demo3;

public class Demo3Teacher {
    public void check(int score) throws ScoreException {
        if(score<0 ||score >100) throw new ScoreException("分数格式有错误");
        System.out.println("分数是"+score);
    }
}
